<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }
    div {
      width: 200px;
      height: 200px;
      background-color: hotpink;
      margin: 50px 0;
      display: inline;
    }

    /* 
      display属性转换元素类型
        block:块元素
        inline:行内元素
        inline-block:行内块元素
    */
    
    span  {
      width: 200px;
      height: 200px;
      background-color: hotpink;
      margin: 50px 0;
      display: block;
    }

    em {
      width: 200px;
      height: 200px;
      background-color: hotpink;
      margin: 50px 0;
      display: inline-block;
    }
  </style>
</head>
<body>
  <div>容器标签</div>
  <div>容器标签</div>
  <span>文本标签</span>
  <span>文本标签</span>
  <em>斜体标签</em>
  <em>斜体标签</em>
</body>
</html>